<?php
include_once('admin_global.php');
$theme->add_block('body');

if(isset($_FILES['file']))
{
    $file=new bn_files();
    $dir=new bn_directory();
    $gf=new bn_genralfunc();
    $path=basepath.'/template';
    $dir->Delete_dir($path,false);
    $file->unzip_allfile($_FILES['file']['tmp_name'],$path);
    $gf->msgbox($lang[42],$lang[41]);
    unset($file);
    unset($dir);
    
}
?>
<form method="post" enctype="multipart/form-data">
<label><?php echo $lang[43] ?></label>
<input type="file" size="50" name="file" id="file" class="input-text"/>
<input type="submit" name="submit" id="submit" value="<?php echo $lang[44] ?>" class="button"/>
</form>
<?php
$theme->render();
?>